// components/wxParse/wxParse.js
var WxParse = require('./wxParse/wxParse.js');
var that;
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    article: null,
  },
  observers: {
    'article': function (newData) {
      // console.log(newData,'1111111111111111111111111111111')
      if (typeof newData=='string'){
        this.init();
      }
    },
  },
  /**
   * 组件的初始数据
   */
  data: {
    // article:'',
  },

  /**
   * 组件的方法列表
   */
  methods: {
    init: function () {
      const that=this;
      let article = that.data.article;
      // console.log('article=============',article)
      WxParse.wxParse('article', 'html', article, that, 5);
    }
  },
  ready: function () {
    // that = this;
    // that.init();
  }
})
